package org.meetunexpectedly;

import org.meetunexpectedly.authority.AuthorityUtils;
import org.meetunexpectedly.authority.verify.BaseAuthorityVerify;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync
@EnableAspectJAutoProxy()
@EnableTransactionManagement
@EnableScheduling
@SpringBootApplication
public class MeetUnexpectedlyApplication {

    public static void main(String[] args) {
        // 开启全局校验
        AuthorityUtils.setGlobalAuthority(true,new BaseAuthorityVerify());
        SpringApplication.run(MeetUnexpectedlyApplication.class, args);
    }

}
